﻿namespace SharpTalk.Core.Interfaces
{
    using Enums;
    using EventArgs;

    public interface IMessageHandler
    {
        bool CanHandle(MessageTypeEnum type);
        void HandleMessage(object message, MessageHandleEventArgs e);
    }

    public interface IMessageHandler<in T> : IMessageHandler
    {
        void HandleMessage(T item, MessageHandleEventArgs e);
    }

    
}